load("//tools/lint:lint.bzl", "add_lint_tests")
load(
    "//tools/skylark:drake_cc.bzl",
    "drake_cc_googletest",
    "drake_cc_library",
    "drake_cc_package_library",
)

package(
    default_visibility = ["//visibility:public"],
)

drake_cc_package_library(
    name = "math",
    visibility = ["//visibility:public"],
    deps = [
        ":spatial_algebra",
    ],
)

drake_cc_library(
    name = "spatial_algebra",
    srcs = [
        "spatial_algebra.cc",
    ],
    hdrs = [
        "spatial_acceleration.h",
        "spatial_algebra.h",
        "spatial_force.h",
        "spatial_momentum.h",
        "spatial_vector.h",
        "spatial_velocity.h",
    ],
    deps = [
        "//common:default_scalars",
        "//common:essential",
        "//math:geometric_transform",
        "//math:vector3_util",
    ],
)

drake_cc_googletest(
    name = "spatial_algebra_test",
    deps = [
        ":spatial_algebra",
        "//common/test_utilities:eigen_matrix_compare",
    ],
)

add_lint_tests()
